package com.notary.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 公证卷宗基本信息
 * </p>
 *
 * @author xujun
 * @since 2020-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_deposit")
@ApiModel(value = "Deposit对象", description = "存证申请")
public class Deposit implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("序列号")
    private String transNo;

    @ApiModelProperty(value = "身份证姓名")
    private String cardName;

    @ApiModelProperty(value = "身份证号码")
    private String cardNo;

    @ApiModelProperty(value = "创建时间")
    private String hashCode;

    @ApiModelProperty(value = "创建时间")
    private String grantKey;

    @ApiModelProperty(value = "创建时间")
    private Integer notaryStatus;

    @ApiModelProperty(value = "创建时间")
    private Integer unzipStatus;

    @ApiModelProperty("解压文件的数据")
    private String unzipData;

    @ApiModelProperty(value = "申请时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date applyTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
